local dewdrop = AceLibrary("Dewdrop-2.0")

local options = { 
    type='group',
    args = {
    	SP = {
    		type = "text",
    		name = "Search Pattern",
    		desc = "the pattern to search for alts, use % where the name will be",
    		usage = "<any string>",
    		get = "GetSearchPattern",
    		set = "SetSearchPattern",
    	},
		update = {
			type = "execute",
			name = "update",
			desc = "Updates the roster, debug",
			func = "UpdateRoster",
		},
		search = {
    		type = "text",
    		name = "Search",
    		desc = "Search",
    		usage = "<any string>",
    		get = false,
    		set = "RosterSearch",
    		input = true
		},
		NoteType = {
			type = "group",
			name = "NoteType",
			desc = "foo",
			args = {
				GuildNote = {
					type = "toggle",
					name = "Guild Note",
					desc = "Enable the searching of the Guild Note",
					get = "GetSearchGuildNote",
					set = "SetSearchGuildNote",
				},
				OfficerNote = {
					type = "toggle",
					name = "Officer Note",
					desc = "Enable the searching of the Officer Note",
					get = "GetSearchOfficerNote",
					set = "SetSearchOfficerNote",
				}
			}
		},
	},
}


SuperGuild:RegisterChatCommand("/superguild", "/sg", options)